package walkera.cn.httpserve.mApi;


import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import walkera.cn.httpserve.bean.PicBean;


public interface PicInfoService {

    /**
     *  http://xxx/getAllPicInfoGson?pageNum=6
     */
    @GET("getAllPicInfoGson")
    Observable<List<PicBean>> getPicListByGet(@Query("pageNum") int pageNum );


    @FormUrlEncoded
    @POST("getAllPicInfoGson")
    Observable<List<PicBean>> getPicListByPost(  @Field("pageNum") int pageNum );

}
